# -*- coding:utf8 -*-
import os


def mkdir_if_not_exist(path_list):
    """
    创建文件夹，如果不存在
    """
    if isinstance(path_list, (list, tuple)):
        for path in path_list:
            if not os.path.exists(path):
                os.mkdir(path)
    else:
        if not os.path.exists(path_list):
            os.mkdir(path_list)
